package com.lst.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.lst.dao.FocusMapper;
import com.lst.model.Focus;
import com.lst.service.FocusService;


/**
 * @ClassName: FocusServiceImpl
 * @Description: 关注添加实现类层
 * 
 */
@Service("FocusService")
public class FocusServiceImpl implements FocusService {
	
	@Autowired
	private FocusMapper dao;

	@Override
	public int insert(Focus record) {
		
		return dao.insert(record);
	}

	@Override
	public Focus selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int delete(Integer id) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<Focus> queryByList(Map<String, Object> map, PageBounds pageBounds) {
	
		return dao.queryByList(map, pageBounds);
	}

	@Override
	public int updateFocus(Map<String, Object> map) {
	
		return dao.updateFocus(map);
	}

	@Override
	public Focus selectByMap(Map<String, Object> map) {

		return dao.selectByMap(map);
	}

	@Override
	public int countFocusTotal(Integer id) {
		
		return dao.countFocusTotal(id);
	}

	@Override
	public int countFansTotal(Integer id) {
		
		return dao.countFansTotal(id);
	}

	@Override
	public List<Focus> queryByList2(Map<String, Object> map, PageBounds pageBounds) {
	
		return dao.queryByList2(map, pageBounds);
	}
	

	@Override
	public List<Focus> queryByList3(Map<String, Object> map, PageBounds pageBounds) {
	
		return dao.queryByList3(map, pageBounds);
	}

	@Override
	public int updateFocus2(Map<String, Object> map) {
		
		return dao.updateFocus2(map);
	}

	@Override
	public Focus selectByMap2(Map<String, Object> map) {
		
		return dao.selectByMap2(map);
	}
}
